<template>
  <div> 看看 </div>
</template>

<script setup lang="ts">
  import { ref, onMounted, watch } from 'vue'
  import { useVueFlow } from '@vue-flow/core'
  const { nodesSelectionActive, addSelectedNodes, getNodes } = useVueFlow()

  // onMounted(() => {
  //   console.log('节点————————', getNodes)
  // })

  watch(
    () => getNodes.value.length,
    (val) => {
      if (val) {
        console.log('节点————————', getNodes.value)
      }
    },
    {
      deep: true,
      immediate: true,
    },
  )
</script>

<style scoped lang="less"></style>
